<?php echo form_open_multipart('', 'class="form-horizontal" role="form"');?>
    <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right">Name <span class="red"> *</span></label>
        <div class="col-sm-9">
            <?php echo form_input('name', set_value('name', $row[field('name')]), 'autocomplete="off" class="col-xs-10 col-sm-5"'); ?>
	        <?php echo form_error('name', '<div class="col-sm-12 no-padding red">', '</div>'); ?>
        </div>
    </div>
    <div class="space-4"></div>
    <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right">Shop ID <span class="red"> *</span></label>
        <div class="col-sm-9">
            <?php echo form_input('flag', set_value('flag', $row[field('flag')]), 'autocomplete="off" class="col-xs-10 col-sm-5"'); ?>
            <?php echo form_error('flag', '<div class="col-sm-12 no-padding red">', '</div>'); ?>
        </div>
    </div>
    <div class="space-4"></div>
    <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right">Image</label>
        <div class="col-sm-9">
            <div class="ace-file-input col-xs-10 col-sm-5 no-padding">
                <input type="file" id="input-file-image" name="image" />
            </div>
        </div>
    </div>
    <div class="space-4"></div>
    <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right">Description</label>
        <div class="col-sm-9">
            <?php echo form_textarea('description', set_value('description', $row[field('description')]), 'class="col-xs-10 col-sm-5"'); ?>
	        <?php echo form_error('description', '<div class="col-sm-12 no-padding red">', '</div>'); ?>
        </div>
    </div>
    <div class="clearfix form-actions">
        <div class="col-md-offset-3 col-md-9">
            <?php echo anchor(site_url(module_controller('view')),'&larr; Cancel', 'class="btn"');?>
            <button name="btnSave" class="btn btn-info" type="submit">
                <i class="icon-ok bigger-110"></i>Save
            </button>
        </div>
    </div>
<?php echo form_close();?>